package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.system.entity.SysDrugModel;
import cn.stylefeng.guns.modular.system.mapper.SysDrugMapper;
import cn.stylefeng.roses.core.datascope.DataScope;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 配药关联表 服务实现类
 * </p>
 *
 * @author zangsh
 * @since 2022-07-28
 */
@Service
public class SysDrugServiceImpl extends ServiceImpl<SysDrugMapper, SysDrugModel> implements IService<SysDrugModel> {

    /**
     * 根据条件查询用户列表
     */
    public Page<Map<String, Object>> selectDrug(DataScope dataScope, String name, String beginTime, String endTime, Long typesId) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.selectDrug(page, dataScope, name, beginTime, endTime, typesId);
    }

}
